import {Base, OrbitControls, AssetManager, ScreenCamera } from 'kokomi.js';
import World from './world/World';
import Debug from './Debug';
import resources from './resources';

export default class Experience extends Base {

    public world: World;
    public debug: Debug;
    public am: AssetManager;

    constructor(sel = '#sketch'){
        super(sel);

        window.experience = this;

        this.debug = new Debug();

        this.am = new AssetManager(this, resources);

        const screenCamera = new ScreenCamera(this);
        screenCamera.addExisting();

        this.world = new World(this);
    }
}